﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-2.5.3.js")" type="text/javascript"></script>
</head>
<body>
    <div class="page">
        <header>
            <div id="title">
                <h1>@ViewBag.Title</h1>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
                @Html.Partial("_RegisterPartial")
            </div>
            <nav>
                       <ul id="menu">
                            <li>@Html.ActionLink("Inicio", "Index", "Home")</li>
                            <li>@Html.ActionLink("Buscar", "Buscar", "Materials")</li>
                            @if (User.IsInRole(BibliotecaVirtual.Libreria.Constantes.SOCIO))
                            {
                                if (!User.IsInRole(BibliotecaVirtual.Libreria.Constantes.ADMINISTRADOR))
                                {
                                    <li>@Html.ActionLink("Mis Datos", "Index", "Socios")</li>
                                }
                                <li>@Html.ActionLink("Prestamos", "Index", "Prestamos")</li>
                                <li>@Html.ActionLink("Reservaciones", "Index", "Reservaciones")</li>
                            }
                            @if (User.IsInRole(BibliotecaVirtual.Libreria.Constantes.ADMINISTRADOR))
                            {   
                                <li>@Html.ActionLink("Socios", "Index", "Socios")</li>
                                <li>@Html.ActionLink("Temas", "Index", "Tema")</li>
                                <li>@Html.ActionLink("Tipo Material", "Index", "TipoMaterials")</li>
                                <div>
                                    <li>@Html.ActionLink("Materiales", "Index", "Materials")</li>
                                    <li>@Html.ActionLink("Temas Materiales", "Index", "TemasMaterials")</li>
                                    <li>@Html.ActionLink("Usuarios", "ListadoUsuarios", "Account")</li>
                                    <li>@Html.ActionLink("Vincular Socio Usuario", "Index", "UsuarioSocios")</li>
                                    <li>@Html.ActionLink("Autores", "Index", "Autors")</li>
                                    <li>@Html.ActionLink("Editoriales", "Index", "Editorials")</li>
                                </div>
                            }
                        </ul>
            </nav>
        </header>
        <section id="main">
            @RenderBody()
        </section>
        <footer>
        </footer>
    </div>
</body>
</html>
